package io.github.yangyouwang.module.mm.entity;

import java.util.Map;

public class GridAndFixRatioSymbolInfo {

    /**
     * 品种名
     */
    private String symbol;
    /**
     * 当前主力合约
     */
    private String currentMainContract;
    /**
     * 当前价格
     */
    private double currentPrice;
    /**
     * 合约乘数
     */
    private int volumeMultiple;
    /**
     * 之前的最小价格
     */
    private double minPrice;
    /**
     * 之前的最大价格
     */
    private double maxPrice;
    /**
     * 可以开仓的手数
     */
    private int openSlot;
    /**
     * 实际跌到最小价格的预计比例
     */
    private double actualMaybeFallRatio;
    /**
     * 跌到最小价格预计比例。如果低于阈值，会强制设置为阈值
     */
    private double maybeFallRatio;
    /**
     * 网格数
     */
    private int gridCount;
    /**
     * 每个品种的下跌网格. key是价格，value是手数
     */
    private Map<Integer, Integer> grid;

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getCurrentMainContract() {
        return currentMainContract;
    }

    public void setCurrentMainContract(String currentMainContract) {
        this.currentMainContract = currentMainContract;
    }

    public double getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(double currentPrice) {
        this.currentPrice = currentPrice;
    }

    public int getVolumeMultiple() {
        return volumeMultiple;
    }

    public void setVolumeMultiple(int volumeMultiple) {
        this.volumeMultiple = volumeMultiple;
    }

    public double getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(double minPrice) {
        this.minPrice = minPrice;
    }

    public double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(double maxPrice) {
        this.maxPrice = maxPrice;
    }

    public int getOpenSlot() {
        return openSlot;
    }

    public void setOpenSlot(int openSlot) {
        this.openSlot = openSlot;
    }

    public double getActualMaybeFallRatio() {
        return actualMaybeFallRatio;
    }

    public void setActualMaybeFallRatio(double actualMaybeFallRatio) {
        this.actualMaybeFallRatio = actualMaybeFallRatio;
    }

    public double getMaybeFallRatio() {
        return maybeFallRatio;
    }

    public void setMaybeFallRatio(double maybeFallRatio) {
        this.maybeFallRatio = maybeFallRatio;
    }

    public int getGridCount() {
        return gridCount;
    }

    public void setGridCount(int gridCount) {
        this.gridCount = gridCount;
    }

    public Map<Integer, Integer> getGrid() {
        return grid;
    }

    public void setGrid(Map<Integer, Integer> grid) {
        this.grid = grid;
    }
}
